package org.csu.forum.domain.PO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@TableName("reply_content")
@Data

public class ReplyContent {

    @TableField("post_id")
    private int postid;

    @TableField("reply_id")
    private int replyid;

    @TableField("content")
    private String content;

    @TableField("replyer_id")
    private int replyerid;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy:MM:dd HH:mm:ss")
    @TableField("time")
    private Date time;

    @TableField(exist = false)
    private String postContent;

}
